package com.zretc.dao;

import com.zretc.pojo.FamilyInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
@Mapper
public interface FamilyMapper {
    /**
     * 根据客户身份证号，查询对应的家庭信息
     * @param idCard
     * @return
     */
    List<FamilyInfo> getFamilyInfo(String idCard);

    /**
     * 添加家庭成员信息
     * @param familyInfo
     * @return
     */
    Integer addFamilyInfo(FamilyInfo familyInfo);

    /**
     * 查询一条家庭成员信息
     * @param familyId
     * @return
     */
    FamilyInfo selectIdFamilyInfo(Integer familyId);

    /**
     * 更改家庭成员信息
     * @param familyInfo
     * @return
     */
    Integer editFamilyInfo(FamilyInfo familyInfo);

    /**
     * 删除家庭成员信息
     * @param familyId
     * @return
     */
    Integer deleteFamilyInfo(Integer familyId);
}
